//
//  HJLocationManager.h
//  project
//
//  Created by hu on 2019/3/30.
//  Copyright © 2019 健健. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN
@class LocationModel,CLLocation;
@interface HJLocationManager : NSObject

+(instancetype)manager;

@property (nonatomic,copy) void (^locationBlock)(LocationModel * model);
@property (nonatomic,copy) void (^locationManagerBlock)(CLLocation * _Nonnull location);

@end

NS_ASSUME_NONNULL_END

@interface LocationModel : NSObject <NSCoding,NSCopying>
/**
 城市
 */
@property (nonatomic,strong) NSString * city;

/**
 国家
 */
@property (nonatomic,strong) NSString * country;

/**
 街道
 */
@property (nonatomic,strong) NSString * street;
///省/直辖市
@property (nonatomic, copy) NSString *province;
/**
 路线
 */
@property (nonatomic,copy) NSString * dAddressLines;
@property (nonatomic,strong) NSString * addreess;
///社区
@property (nonatomic, copy)   NSString         *neighborhood;
/**
 区县
 */
@property (nonatomic,strong) NSString * SubLocality;
///城市编码
@property (nonatomic, copy) NSString *citycode;

/**
 大道
 */
@property (nonatomic,strong) NSString * Thoroughfare;

/**
 经度
 */
@property (nonatomic,strong) NSString * lat;

/**
 纬度
 */
@property (nonatomic,strong) NSString * lng;
@end
